<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/lay/lib/layui-v2.5.5/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/lay/css/public.css}" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>

</head>
<body  >
<div class="layui-form layuimini-form">
<input id="id" th:value="${msg.getId()}"hidden="hidden">

    <div class="layui-form-item">
        <label class="layui-form-label required">检查日期</label>
        <div class="layui-input-block">
            <input type="text" name="beginTime" th:value="${date}" class="layui-input" id="begin" placeholder="yyyy-MM-dd">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">检查时间</label>
        <div class="layui-input-block">
            <select id="isTop" name="isTop"lay-verify="required">
                <option th:selected="${msg.getIstop() eq 1}"   id="top1"  name="top1" value="1">上午</option>
                <option th:selected="${msg.getIstop() eq 2} " id="top2" name="top2"  value="2">下午</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">教室</label>
        <div id="message" class="layui-input-block">
            <input type="text" id="classRoomName" name="classRoomName" th:value="${msg.getClassRoomName()}" th:onblur="exitClassRoom()" lay-verify="required" lay-reqtext="教室名称不能为空" placeholder="请输教室名称"
                   class="layui-input">
<!--            <tip>填写自己管理账号的名称。</tip>-->
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">班级</label>
        <div id="message1" class="layui-input-block">
            <input type="text" id="className" name="className" th:value="${msg.getClassName()}" th:onblur="exitClass()" lay-verify="required" lay-reqtext="班级名称不能为空" placeholder="请输入班级名称"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">应到人数</label>
        <div class="layui-input-block">
            <input type="text" id="classCount" name="ClassCount" readonly="readonly" th:value="${msg.getClassCount()}" lay-verify="required" lay-reqtext="应到人数不能为空" placeholder="应到人数不能为空"
                   class="layui-input">
            <tip>*不可编辑</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">实到人数</label>
        <div id="class" class="layui-input-block">
            <input type="number" id="factPersons" name="factPersons" th:value="${msg.getFactPersons()}" th:onblur="actualNumber()" lay-verify="required" lay-reqtext="实到人数不能为空" placeholder="实到人数不能为空"
                   class="layui-input">
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label required">正装数</label>
        <div id="zhengzhuang" class="layui-input-block">
            <input type="number" id="formalsuit" name="formalsuit" th:value="${msg.getFormalsuit()}" th:onblur="formalsuitNumber()" lay-verify="required" lay-reqtext="正装数不能为空" placeholder="正装数不能为空"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">出勤率</label>
        <div class="layui-input-block">
            <input  type="number" id="factPersonsWork" readonly="readonly" name="factPersonsWork" th:value="${msg.getWork()}" lay-verify="required" lay-reqtext="出勤率不能为空" placeholder="出勤率不能为空"
                   class="layui-input">
            <tip>*不可编辑</tip>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">正装率</label>
        <div class="layui-input-block">
            <input type="number" id="formalwork" name="formalwork" readonly="readonly" th:value="${msg.getFormalwork()}" lay-verify="required" lay-reqtext="正装率不能为空" placeholder="正装率不能为空"
                   class="layui-input">
            <tip>*不可编辑</tip>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">检查人</label>
        <div id="stu" class="layui-input-block">
            <input type="text" id="studentName" name="studentName" th:value="${msg.getStudentName()}" th:onblur="checkUserName()" lay-verify="required" lay-reqtext="检查人不能为空" placeholder="检查人不能为空"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
</div>

<script th:src="@{/lay/lib/jquery-3.4.1/jquery-3.4.1.min.js}"></script>
<script th:src="@{/lay/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
<script th:src="@{/js/management/checkClassjs/editCode.js}"></script>
<script th:src="@{/js/management/checkClassjs/function.js}"></script>


</body>
</html>